package com.testnacos.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Configuration
@RestController
public class ProviderController {

    @Value("${spring.port}")
    private String port;

    @Value("${spring.profiles}")
    private String profiles;

    @RequestMapping("/killyou")
    public String kill(){

        return "killyou";
    }

    @RequestMapping("/showPorts")
    public String showPorts(){

        return "profiles"+profiles+"port"+port;
    }




}
